package edu.hawaii.wicket.page.home;

import org.apache.wicket.ResourceReference;
import org.apache.wicket.markup.html.image.Image;
import org.apache.wicket.model.Model;

import edu.hawaii.wicket.page.BasePage;

/**
 * The application home page.  This page illustrates links. 
 * @author Philip Johnson
 */
public class HomePage extends BasePage {
  private static final ResourceReference SIDE_BAR = new ResourceReference(
            HomePage.class,"side-bar.png");
  private static final ResourceReference LOGO = new ResourceReference(
            HomePage.class,"logo.png");
  private static final ResourceReference W1 = new ResourceReference(
          HomePage.class,"light-widget.png");
  private static final ResourceReference W2 = new ResourceReference(
          HomePage.class,"ac-widget.png");

  /** Support serialization. */
  private static final long serialVersionUID = 1L;
  
  /**
   * The home page for this application.  In this example, all of the material for the home
   * page is provided in the BasePage class, the BasePage.html file, and the HomePage.html file.
   * 
   */
  public HomePage() {
    add(new Image("sidebar", new Model<ResourceReference>(SIDE_BAR)));
    add(new Image("logo", new Model<ResourceReference>(LOGO)));
    add(new Image("widget1", new Model<ResourceReference>(W1)));
    add(new Image("widget2", new Model<ResourceReference>(W2)));
  }
}
